﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Resources_Default" Title="Untitled Page" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>
<%@ Import Namespace="BCGC.BLL.Helper" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" Runat="Server">
    <div class="section-area">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" class="highlighted-text">
                    Type a title to search from the list: <asp:TextBox ID="tbxTitle" runat="server" Width="370px"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Button ID="btcSearch" OnClick="Search_Click" runat="server" CssClass="button" Text="Search" />
                </td>
            </tr>
        </table>
        <div class="section-head">
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sub-head-left">&nbsp;</td>
                    <td>Resources</td>
                    <td class="sub-head-right" align="right">&nbsp;</td>
                </tr>
            </table>
        </div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="rounded_left_top"></td>
                <td class="rounded_top"></td>
                <td class="rounded_right_top"></td>
            </tr>
            <tr>
                <td class="rounded_left"></td>
                <td>
                    <asp:Repeater ID="rptResources" runat="server" OnItemDataBound="Resource_DataBound">
                        <HeaderTemplate>
                            <div>
                                <table width="100%" border="0">
                                    <tr>
                                        <td width="50%"></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="cheatcode.jpg" ImageAlign="AbsMiddle" AlternateText="Cheat Codes" /></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="crack.jpg" ImageAlign="AbsMiddle" AlternateText="Cracks"/></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="trailer.jpg" ImageAlign="AbsMiddle" AlternateText="Trailers"/></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="trial.jpg" ImageAlign="AbsMiddle" AlternateText="Trials"/></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="wallpaper.jpg" ImageAlign="AbsMiddle" AlternateText="Wallpapers"/></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="patch.jpg" ImageAlign="AbsMiddle" AlternateText="Patches"/></td>
                                        <td align="center"><ucc:ThemeImage runat="server" ImageUrl="otherresource.jpg" ImageAlign="AbsMiddle" AlternateText="Other Resources"/></td>
                                    </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <div class="section-item">
                                    <tr>
                                        <td width="50%"><asp:Label ID="lblGameTitle" runat="server" Text='<%# Eval("GameTitle") %>'></asp:Label></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameCheatCodes %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("CheatCodeCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameCracks %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("CrackCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameTrailers %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("TrailerCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameTrials %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("TrialCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameWallpapers %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("WallpaperCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GamePatches %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("PatchCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameOtherResources %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("OtherResourceCount") %>' CssClass="big-font"></asp:Label></a></td>
                                    </tr>
                        </ItemTemplate>
                        <SeparatorTemplate>
                           <div class="section-seperator"></div>
                        </SeparatorTemplate>
                        <AlternatingItemTemplate>
                            <div class="section-item">
                                    <tr>
                                        <td width="50%"><asp:Label ID="lblGameTitle2" runat="server" Text='<%# Eval("GameTitle") %>'></asp:Label></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameCheatCodes %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("CheatCodeCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameCracks %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("CrackCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameTrailers %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("TrailerCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameTrials %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("TrialCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameWallpapers %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("WallpaperCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GamePatches %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("PatchCount") %>' CssClass="big-font"></asp:Label></a></td>
                                        <td align="center"><a href='<%= CustomSiteMap.GameOtherResources %>?id=<%# Eval("GameId") %>'><asp:Label runat="server" Text='<%# Eval("OtherResourceCount") %>' CssClass="big-font"></asp:Label></a></td>
                                    </tr>
                        </AlternatingItemTemplate>
                        <FooterTemplate>
                                </table>
                            </div>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td class="rounded_right"></td>
            </tr>
            <tr>
                <td class="rounded_left_bottom"></td>
                <td class="rounded_bottom"></td>
                <td class="rounded_right_bottom"></td>
            </tr>
        </table>
    </div>
    <div class="pager-area">
        <asp:Repeater ID="rptPager" runat="server" OnItemDataBound="Pager_DataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lkbPageIndex" runat="server" CssClass="page-index" Width="24px" Height="24px"
                    Text='<%# Container.DataItem.ToString() %>' CommandName="PagingCommand"
                    CommandArgument='<%# Container.DataItem %>'
                    OnCommand="Page_Change"></asp:LinkButton>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

